package com.cxhc.system.domain.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cxhc.common.annotation.Excel;

/**
 * 点赞对象 cm_like
 * 
 * @author Dhq
 * @String 2024-09-24
 */
public class CmLike
{

    /** $column.columnComment */
    private Long id;

    /** 点赞的用户ID */
    @Excel(name = "点赞的用户ID")
    private Long userId;

    /** 点赞的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "点赞的时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private String addTime;

    /** 评论用户名 */
    @Excel(name = "评论用户名")
    private String userRealName;

    /** 评论用户照片 */
    @Excel(name = "评论用户照片")
    private String userPhoto;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 目标ID */
    @Excel(name = "目标ID")
    private String targetId;

    /** 点赞face */
    @Excel(name = "点赞face")
    private String face;

    /** 用户角色 ID */
    @Excel(name = "用户角色 ID")
    private Long userRoleId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAddTime(String addTime) 
    {
        this.addTime = addTime;
    }

    public String getAddTime() 
    {
        return addTime;
    }
    public void setUserRealName(String userRealName) 
    {
        this.userRealName = userRealName;
    }

    public String getUserRealName() 
    {
        return userRealName;
    }
    public void setUserPhoto(String userPhoto) 
    {
        this.userPhoto = userPhoto;
    }

    public String getUserPhoto() 
    {
        return userPhoto;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTargetId(String targetId) 
    {
        this.targetId = targetId;
    }

    public String getTargetId() 
    {
        return targetId;
    }
    public void setFace(String face) 
    {
        this.face = face;
    }

    public String getFace() 
    {
        return face;
    }
    public void setUserRoleId(Long userRoleId) 
    {
        this.userRoleId = userRoleId;
    }

    public Long getUserRoleId() 
    {
        return userRoleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("addTime", getAddTime())
            .append("userRealName", getUserRealName())
            .append("userPhoto", getUserPhoto())
            .append("type", getType())
            .append("targetId", getTargetId())
            .append("face", getFace())
            .append("userRoleId", getUserRoleId())
            .toString();
    }
}
